<div class="main">
  <div class="show-container clear">
    <div class="shuffling-figure fl">
      <div class="carousel-img">
        <ul rn-carousel
          rn-carousel-auto-slide = '3'
          class="image">
          <li ng-repeat="slide in main.slides">
            <img ng-src="{{slide.image}}" alt="">
            <div class="carousel-captipon">
              <p>{{slide.text}}</p>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <div class="project-notice fl">
      <div class="shadowbox">
        <div class="common-task-header">
          <i class="fa fa-tasks"></i>
          <span>项目公告</span>
          <span class="check-more"
            ui-sref="projectNotice">更多</span>
        </div>
        <div class="project-notice-content">
          <div class="notice-item"
            ng-repeat="item in main.projectNoticeList">
            <div class="notice-title">{{item.dept}}</div>
            <div class="notice-content" ui-sref="announcementDetail({id:item.id})">{{item.title}}</div>
            <div class="notice-date">{{item.createTime}}</div>
          </div>
        </div>
      </div>
    </div>
    <div class="task-info-content fl">
      <div class="train-task shadowbox">
        <div class="common-task-header">
          <i class="fa fa-tasks"></i>
          <span>问题追踪</span>
          <span class="check-more" ui-sref="inspectContent4Problems">更多</span>
        </div>
        <div class="train-task-list">
          <div class="row"
            ng-repeat = "item in main.problemTrackingList"
            ng-class="{active:item.active}"
            ui-sref="rectificationDetail({id:item.problemId})">
            <div class="td">{{item.bidName}}</div>
            <div class="td">{{item.checkClassifyName}}</div>
            <div class="td">{{item.problemDeadline1}}</div>
            <div class="td">{{main.getCheckStatus(item.problemStatus)}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <!-- 内业资料管理入口 -->
  <div class="unit-overview">
    <div class="unit-documentMgt">
      <div class="documentMgt-list">
        <div class="documentMgt-item"
          ui-sref="documentItemMgt({type:'detail',id:'3',role:'2',referCommonType:'3'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt1.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全体系</div>
        </div>
        <div class="documentMgt-item documentMgt-item-two"
          ui-sref="documentMgt">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt2.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全生产条件审查</div>
        </div>
        <div class="documentMgt-item documentMgt-item-two"
          ui-sref="documentItemMgt.safeDisclosure({type:'detail',id:'7',role:'2', referredBoxId:'20'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt3.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全技术交底</div>
        </div>
        <div class="documentMgt-item documentMgt-item-two"
          ui-sref="documentItemMgt.meeting({type:'detail',id:'7',role:'2', referredBoxId:'18'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt4.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全培训与会议</div>
        </div>
        <div class="documentMgt-item documentMgt-item-three"
          ui-sref="documentItemMgt.dailyCheck({type:'detail',id:'16',role:'2'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt5.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全检查管理</div>
        </div>
        <div class="documentMgt-item"
          ui-sref="documentItemMgt({type:'detail',id:'10',role:'2', referredBoxId:'30'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt6.png" alt="">
          </div>
          <div class="documentMgt-item-brief">危险性较大工程</div>
        </div>
        <div class="documentMgt-item documentMgt-item-two"
          ui-sref="documentItemMgt({type:'detail',id:'15',role:'2', referredBoxId:'41'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt7.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全费用管理</div>
        </div>
        <div class="documentMgt-item documentMgt-item-two"
          ui-sref="documentItemMgt({type:'detail',id:'14',role:'2', referredBoxId:'38'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt8.png" alt="">
          </div>
          <div class="documentMgt-item-brief">应急预案</div>
        </div>
        <div class="documentMgt-item documentMgt-item-two"
          ui-sref="documentItemMgt({type:'detail',id:'17',role:'2', referredBoxId:'50'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt9.png" alt="">
          </div>
          <div class="documentMgt-item-brief">事故处理</div>
        </div>
        <div class="documentMgt-item documentMgt-item-three"
          ui-sref="documentItemMgt({type:'detail',id:'5',role:'2', referredBoxId:'10'})">
          <div class="img-box">
            <img src="../../../assets/images/documentMgt/documentMgt10.png" alt="">
          </div>
          <div class="documentMgt-item-brief">安全月报管理</div>
        </div>
      </div>
    </div>
  </div>
  <!-- 单位概况 -->
  <div class="unit-overview">
    <div class="task-info-content shadowbox">
      <div class="common-task-header">
        <i class="fa fa-tasks"></i>
        <span>单位概况</span>
      </div>
      <div class="unit-overview-content">
        <div class="row title">
          <div class="th">
            <i class="fa fa-home"></i>
            <div class="unit-item-txt">单位</div>
          </div>
          <div class="th">
            <i class="fa fa-building"></i>
            <div class="unit-item-txt">公司名称</div>
          </div>
          <div class="th">
            <i class="fa fa-list-alt"></i>
            <div class="unit-item-txt">本月巡查记录</div>
          </div>
          <div class="th">
            <i class="fa fa-edit"></i>
            <div class="unit-item-txt">本月提交内容</div>
          </div>
          <div class="th">
            <i class="fa fa-warning"></i>
            <div class="unit-item-txt">本月上报隐患</div>
          </div>
          <div class="th">
            <i class="fa fa-bell"></i>
            <div class="unit-item-txt">待处理隐患</div>
          </div>
          <div class="th">
            <i class="fa fa-group"></i>
            <div class="unit-item-txt">在场工人</div>
          </div>
          <div class="th">
            <i class="fa fa-cogs"></i>
            <div class="unit-item-txt">在场机械</div>
          </div>
        </div>
        <!-- <div>
          ui-sref="queryAssessmentPeace({bidId:item.bidId,orgId:item.orgId})"
        </div> -->
        <div class="row content" ng-repeat = "item in main.unitList">
          <div class="th">{{item.bidName}}</div>
          <div class="th">{{item.unitName}}</div>
          <div class="th gesture"
            ui-sref="monthCheck({orgId:item.orgId})">{{item.patrolNum}}</div>
          <div class="th gesture"
            ui-sref="inspectContentMonth({bidId:item.bidId,orgId:item.orgId,type:'month'})">{{item.contentNum}}</div>
          <div class="th gesture"
            ui-sref="inspectContentMonth({bidId:item.bidId,orgId:item.orgId,type:'problem'})">{{item.problemNum}}</div>
          <div class="th gesture"
            ui-sref="inspectContentMonth({bidId:item.bidId,orgId:item.orgId,type:'suspending'})">{{item.pendingNum}}</div>
          <div class="th gesture"
            ng-if="item.bidId"
            ui-sref="queryWorkerInfo({bidId:item.bidId})">{{item.workerNum}}</div>
          <div class="th" ng-if="!!!item.bidId">-</div>
          <div class="th gesture"
            ui-sref="equipmentInfo({bidId: item.bidId, orgId: item.orgId})"
            ng-if="item.bidId">{{item.deviceNum}}</div>
          <div class="th" ng-if="!item.bidId">-</div>
        </div>
      </div>
    </div>
  </div>

  <!-- 红黑榜 -->
  <div class="top-list-container">
    <div class="shadowbox">
      <div class="common-task-header">
        <i class="fa fa-tasks"></i>
        <span style="margin-right: -10px;vertical-align: middle;">施工现场红黑榜</span>
        <span class="check-more" ng-click="$state.go('topList')">更多</span>
      </div>
      <div class="top-list">
        <div class="list red-list">
          <div class="list-header">
            <i class="fa fa-thumbs-up"></i>
            <span>红榜</span>
          </div>
          <table class="pa-table">
            <thead>
            <tr>
              <th style="width: 35%"><i class="fa fa-cube"></i>标段</th>
              <th><i class="fa fa-cube"></i>施工队</th>
              <th><i class="fa fa-cube"></i>表扬内容</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in main.topList.redList">
              <td>{{::item.name}}</td>
              <td>{{::item.constructionTeamName}}</td>
              <td>{{::item.reason}}</td>
            </tr>
            </tbody>
          </table>
        </div>
        <div class="list black-list">
          <div class="list-header">
            <i class="fa fa-thumbs-down"></i>
            <span>黑榜</span>
          </div>
          <table class="pa-table">
            <thead>
            <tr>
              <th><i class="fa fa-cube"></i>标段</th>
              <th><i class="fa fa-cube"></i>施工队</th>
              <th><i class="fa fa-cube"></i>批评内容</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in main.topList.blackList">
              <td>{{::item.name}}</td>
              <td>{{::item.constructionTeamName}}</td>
              <td>{{::item.reason}}</td>
            </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- 新增重点检查项 -->
<script type="text/ng-template" id="openMainPlan">
  <div class="item-detail-dialog newItem">
    <div class="item-detail-dialog-header">
      <div class="title-txt">
        <span>新增重点检查项</span>
      </div>
    </div>
    <div class="item-detail-dialog-content">
      <div class="row-item" style="float:left;">
        <div class="fixed-left-label">开始时间：</div>
        <div class="right-value">
          <div class="line">
            <input type="text" style="position:absolute;top:0;opacity:0">
            <input type="text" ng-datepicker class="form-control"
              ng-model="vm.newList.startDate" />
          </div>
        </div>
      </div>
      <div class="row-item">
        <div class="fixed-left-label">结束时间：</div>
        <div class="right-value">
          <div class="line">
            <input type="text" style="position:absolute;top:0;opacity:0">
            <input type="text" ng-datepicker class="form-control"
              ng-model="vm.newList.endDate" />
          </div>
        </div>
      </div>
      <div class="row-item">
        <div class="fixed-left-label">重点检查项名称：</div>
        <div class="right-value">
          <img src="../../../assets/images/add-item-icon.png" alt="">
          <span ng-click="vm.openTree()">新增考核项</span>
          <!-- ztree nodes -->
          <div class="tree-container shadowbox"
            ng-class="{active: vm.treeActive}"
            ng-show="vm.treeActive">
            <div class="tree-header">
              <span>考核项分类</span>
              <i class="fa fa-times"
                ng-click="vm.closeTree()"></i>
            </div>
            <ul class="ztree" id="tree">

            </ul>
          </div>
        </div>
        <div class="right-value">
          <a class="pa-item-btn"
            ng-repeat="item in vm.outerCheckItemList"
            ng-class="{active: item.active}">
            {{item.name}}
          </a>
        </div>
      </div>
    </div>
    <div class="item-detail-dialog-footer">
      <a class="pa-btn"
        ng-click="vm.save()">
        <i class="fa fa-save"></i>
        <span>确定</span>
      </a>
      <a class="pa-btn" ng-click="closeThisDialog()">
        <i class="fa fa-times"></i>
        <span>取消</span>
      </a>
    </div>
  </div>
</script>